package com.example.dynamic_sport_android;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

import java.util.Timer;
import java.util.TimerTask;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Timer timer = new Timer();
        timer.schedule(new TimerTask(){
            public void run(){
                //需要执行的任务
                Intent jump = new Intent(MainActivity.this,SelectStatusActivity.class);
                startActivity(jump);
            }
        }, 2000);
    }
}